package com.sl.au.entity;

import java.io.Serializable;
import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

public class HierarchyForMailList implements RowMapper<HierarchyForMailList>, Serializable{
	private String id;
	private String groupName;
	private String isNext;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	public String getIsNext() {
		return isNext;
	}
	public void setIsNext(String isNext) {
		this.isNext = isNext;
	}
	
	@Override
    public HierarchyForMailList mapRow(ResultSet rs, int rowNum) throws SQLException {
		HierarchyForMailList hierarchyForMailList = new HierarchyForMailList();
		hierarchyForMailList.setId(rs.getString(id));
		hierarchyForMailList.setGroupName(rs.getString(groupName));
		hierarchyForMailList.setIsNext(rs.getString(isNext));
        return hierarchyForMailList;
    }
}
